package com.chaopei.day38.mappers;

import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;

/**
 * @Author Corday 天涯
 * @Date 2022/4/22 11:28
 * 注解编实现CURD
 */
@Mapper
public interface UserMapper {
//    查询用户
    @Select("select uid from user where username=#{us} and password=#{pa}")
    Integer selectUser(@Param("us") String username, @Param("pa") String password);
}
